package bytecode;

/**
 * @author sjw
 * @className IfSwitch
 * @date 2020/11/25 16:16
 * @description: TODO
 */
public class IfSwitch {
    public static void main(String[] args) {
        System.out.println("main");
    }


    private static void ifFunc(int input) {
        if (input == 1)
            System.out.println("1");
        else if (input == 3)
            System.out.println("3");
        else if (input == 4)
            System.out.println("4");
        else if (input == 5)
            System.out.println("5");
        else System.out.println("default");
    }

    private static void switchFunc(int input) {
        switch (input) {
            case 1:
                System.out.println("1");
                break;
            case 3:
                System.out.println("3");
                break;
            case 4:
                System.out.println("4");
                break;
            case 5:
                System.out.println("5");
                break;
            default:
                System.out.println("default");
        }
    }

    private static void switchFunc1(int input) {
        switch (input) {
            case 1:
                System.out.println("1");
                break;
            case 10:
                System.out.println("10");
                break;
            case 100:
                System.out.println("100");
                break;
            case 1000:
                System.out.println("1000");
                break;
            default:
                System.out.println("default");
        }
    }

}
